Skip to content

Conversation

@meehl
Copy link
Contributor

@meehl meehl commented Dec 3, 2025

GetScreenSize returns the size in physical units if the DPI_AWARE flag is passed to RenderInit. The error popup and restart screen have the wrong position and size at UI scaling factor != 1.0 due to missing conversions to virtual units.

This introduces a utility function for getting the virtual screen size and uses it to add the missing conversions.

Before screenshot:

image

After screenshot:

image

`GetScreenSize` returns the size in physical units if the "DPI_AWARE" flag
is passed to `RenderInit`. The error popup and restart screen have the
wrong position and size at UI scaling factor != 1.0 due to missing
conversions to virtual units.

This introduces a utility function for getting the virtual screen size and
uses it to add the missing conversions.
@meehl
Copy link
Contributor Author

meehl commented Dec 3, 2025

This also needs to be applied to PoB2. It looks like this can be automated by setting a label but i can also do it manually if wanted.

@Nightblade
Copy link
Contributor

Nightblade commented Dec 3, 2025

There's some GetScreenSize calls in src/Export/Launch.lua and src/Export/Main.lua, and don't forget to remove the stub from HeadlessWrapper.lua too! 😁

edit: derp

@LocalIdentity LocalIdentity added the pob2 Label for features that should be ported over to PoB-PoE2 label Jan 28, 2026
@LocalIdentity LocalIdentity added the technical Hidden from release notes label Jan 28, 2026
@LocalIdentity LocalIdentity merged commit b96dbc2 into PathOfBuildingCommunity:dev Jan 28, 2026
2 of 3 checks passed
github-actions bot pushed a commit to PathOfBuildingCommunity/PathOfBuilding-PoE2 that referenced this pull request Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pob2 Label for features that should be ported over to PoB-PoE2 technical Hidden from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants